package com.ws.shop.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ws.shop.dao.VerificationDao;
import com.ws.shop.service.VerificationService;
@Service(value="verificationService")
public class VerificationServiceImpl implements VerificationService {

	@Resource(name="verificationDao")
	private VerificationDao verificationDao;
	
	public int repaySetpwd(final String code,final String type,final String password){
		return verificationDao.repaySetpwd(code, type, password);
	}

	public int getpwd(String mail, String type, String code) {
		
		return verificationDao.getpwd(mail, type, code);
	}
	
	public List<Map<String,Object>> getVerification(String type ,String code){
		return verificationDao.getVerification(type, code);
	}
	
	public int verficaty(final String type,final String code,final String username){
		return verificationDao.verficaty(type, code, username);
	}
	
}
